package com.xhui.vimarket.zkplus.zul.attr.evt;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Button;
com.xhui.vimarket.zkplusui.vimarket.zkplus.zul.attrcom.xhui.vimarket.zkplusrt com.xhui.vimarket.zkplus.zul.acom.xhui.vimarket.zkpluspl;
import com.xhui.vimarket.zkplus.zul.attr.mod.impl.AttrPanelGridComp;

/**
 * .
 * 
 * @版权：福富软件 版权所有 (c) 2011
 * @author wuyx
 * @version Revision 1.0.0
 * @see:
 * @创建日期：2011-4-22
 * @功能说明：
 * 
 */
public class GridPageButtonExt extends Button {
    
    /**
     * .
     */
    private static final long serialVersionUID = -6807043121645905638L;
    /**
     * .
     */
    private AttrExt           attrExt;
    /**
    * .
    */
    private AttrTmpl          attrTmpl;
    /**
     * .
     */
    private Component         comp;
    
    /**
     * GridPageEvt.
     * 
     * @param attrExt AttrExt
     * @param attrTmpl AttrTmpl
     * @param comp Component
     * @author wuyx
     * 2011-4-22 wuyx 
     */
    public GridPageButtonExt(final AttrExt attrExt, final AttrTmpl attrTmpl, final Component comp) {
        this.attrExt = attrExt;
        this.attrTmpl = attrTmpl;
        this.comp = comp;
    }
    
    /**
     * .
     * 
     * @param event
     *            ForwardEvent
     */
    public void onClick(final Event event) {
        AttrPanelGridComp.instance().createNextPage(attrExt, attrTmpl, comp);
    }
}
